import request from '@/utils/request'

// 查询成果奖励列表
export function listRewardInfo(query) {
  return request({
    url: '/pm/rewardInfo/list',
    method: 'get',
    params: query
  })
}

// 查询成果奖励详细
export function getRewardInfo(id) {
  return request({
    url: '/pm/rewardInfo/' + id,
    method: 'get'
  })
}

// 新增成果奖励
export function addRewardInfo(data) {
  return request({
    url: '/pm/rewardInfo',
    method: 'post',
    data: data
  })
}

// 修改成果奖励
export function updateRewardInfo(data) {
  return request({
    url: '/pm/rewardInfo',
    method: 'put',
    data: data
  })
}

// 删除成果奖励
export function delRewardInfo(id) {
  return request({
    url: '/pm/rewardInfo/' + id,
    method: 'delete'
  })
}
